package com.mxnet.chongjin.supoman.bean;

/**
 * author:chongjin
 * email:lcj270018655@163.com
 * date:2018/4/23
 * other:
 */

public class Order {
    private String orderNum;
    private String machinePic;
    private String machineType;
    private String machineInfo;
    private String orderTime;

    public Order(String orderNum, String machinePic, String machineType, String machineInfo, String orderTime) {
        this.orderNum = orderNum;
        this.machinePic = machinePic;
        this.machineType = machineType;
        this.machineInfo = machineInfo;
        this.orderTime = orderTime;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    public String getMachinePic() {
        return machinePic;
    }

    public void setMachinePic(String machinePic) {
        this.machinePic = machinePic;
    }

    public String getMachineType() {
        return machineType;
    }

    public void setMachineType(String machineType) {
        this.machineType = machineType;
    }

    public String getMachineInfo() {
        return machineInfo;
    }

    public void setMachineInfo(String machineInfo) {
        this.machineInfo = machineInfo;
    }

    public String getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(String orderTime) {
        this.orderTime = orderTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o)
            return true;
        if (o == null || getClass() != o.getClass())
            return false;

        Order order = (Order) o;

        if (orderNum != null ? !orderNum.equals(order.orderNum) : order.orderNum != null)
            return false;
        if (machinePic != null ? !machinePic.equals(order.machinePic) : order.machinePic != null)
            return false;
        if (machineType != null ? !machineType.equals(order.machineType) : order.machineType != null)
            return false;
        if (machineInfo != null ? !machineInfo.equals(order.machineInfo) : order.machineInfo != null)
            return false;
        return orderTime != null ? orderTime.equals(order.orderTime) : order.orderTime == null;
    }

    @Override
    public int hashCode() {
        int result = orderNum != null ? orderNum.hashCode() : 0;
        result = 31 * result + (machinePic != null ? machinePic.hashCode() : 0);
        result = 31 * result + (machineType != null ? machineType.hashCode() : 0);
        result = 31 * result + (machineInfo != null ? machineInfo.hashCode() : 0);
        result = 31 * result + (orderTime != null ? orderTime.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "Order{" +
                "orderNum='" + orderNum + '\'' +
                ", machinePic='" + machinePic + '\'' +
                ", machineType='" + machineType + '\'' +
                ", machineInfo='" + machineInfo + '\'' +
                ", orderTime='" + orderTime + '\'' +
                '}';
    }
}
